﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using OnlineLibrary.Linq;
using OnlineLibrary.Models;
using OnlineLibrary.ViewModels;

namespace OnlineLibrary.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            Session.Add("Admin", false);
            Session.Add("Staff", false);
            Session.Add("User", false);
            Session.Add("Guest", true);
            ViewData["Message"] = "Welcome to ASP.NET MVC!";            
            return View();
        }

        public ActionResult About()
        {
            return View();
        }    
        
    }
}
